<?
mysql_connect("localhost", "root", "babu9231") or die(mysql_error());
mysql_select_db("bullying") or die(mysql_error());

$usernamebo = $_COOKIE["usernamebo"];
$sql = "SELECT * FROM accounts WHERE username = '$usernamebo' ";
$qr = mysql_query($sql) or die(mysql_error());?>




<strong>STATUS:</strong>
<strong><font color="#0000FF"> <em><? echo $_COOKIE["usernamebo"];?></em></font></strong> 
<?
if(mysql_num_rows($qr) == 0){
   echo  'Erro';
   
}
else{
   while($ln = mysql_fetch_assoc($qr)){
      echo 	'<table><tr><th>Moral: </th><td>'.$ln['moral'].'</div></tr>'.
	'<tr><th scope="row">Energia:</th><td>'.$ln['energia'].'</div></tr>'.
	'<tr><th scope="row">$: </th><td>'.$ln['grana'].'</div></tr>'.'</table>';
	}
}?>